import {Link} from 'umi'
export default function() {
    const userList = [
        { id:1, name:'Tim' }, { id:2, name:'Jerry' }
    ]
    return (<div>
        <ul>
            { userList.map(item=>(
                <li key={item.id}>
                    <Link to={`/users/${item.name}`}>{item.name}</Link>
                </li>
            )) }
        </ul>
    </div>)
}